package com.itany.shop.util;

import java.sql.Connection;
import java.sql.PreparedStatement;

/**
 * @Author:石小俊
 * @Date:2022/12/15 10:26
 * @Version:1.0-SNAPSHOT
 * @Description: 回调接口,用于创建一个符合需求的PreparedStatement
 */
public interface PreparedStatementCreator {

    /**
     * 根据实际需求去创建一个PreparedStatement
     * @param conn  连接
     * @return      创建完成的PreparedStatement
     * @throws Exception
     */
    public PreparedStatement createPreparedStatement(Connection conn) throws Exception;

}
